package com.dzt.androidframework.photo;

import android.os.Bundle;
import android.view.View;

import com.dzt.androidframework.R;
import com.dzt.androidframework.activity.ActivityTitle;

import org.xutils.view.annotation.Event;

/**
 * 使用xutils管理图片
 */
public class PhotoActivity extends ActivityTitle {

	@Override
	protected int getLayoutId() {
		return R.layout.activity_photo;
	}

	@Override
	protected void initParams() {
		setTitleView(R.string.menu_3);
	}

	@Override
	protected void initData(Bundle savedInstanceState) {

	}

	@Event(value = {R.id.btn_xutils, R.id.btn_fresco, R.id.btn_glide, R.id.btn_picasso,
	R.id.btn_camera})
	private void onViewClick(View v) {
		switch (v.getId()) {
			case R.id.btn_xutils:
				startActivity(xUtilsActivity.class, null);
				break;
			case R.id.btn_fresco:
				startActivity(FrescoActivity.class, null);
				break;
			case R.id.btn_glide:
				startActivity(GlideActivity.class, null);
				break;
			case R.id.btn_picasso:
				startActivity(PicassoActivity.class, null);
				break;
			case R.id.btn_camera:
				startActivity(CameraActivity.class, null);
				break;
			default:
				break;
		}
	}

	@Override
	protected String[] initPermissions() {
		return null;
	}
}
